// 注册mavonEditor 组件

import Vue from 'vue'
import moment from 'moment'

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

Vue.filter('FDateTime', (val, type) => {
  !type && (type = 'YYYY-MM-DD HH:mm:ss')
  return moment(val).format(type)
});

Vue.use(mavonEditor)